package com.aaa.reflection.demo2;

/**
 * @author C-Q
 * @version 1.1.0
 * @Description: 通过反射类来获取对应的类对象
 * @date 2022/10/27
 */
public class Test01 {
    public static void main(String[] args) throws Exception {
        Class<Teacher> teacherClass = Teacher.class;
        Teacher teacher = teacherClass.newInstance();
        Teacher teacher1 = teacherClass.newInstance();
        System.out.println(teacher==teacher1);
    }
}
class Teacher{
}